package cn.tedu.powerfulfitness.pojo.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

@Data
public class ProductAddNewDTO {
    @ApiModelProperty(value = "商品标题", required = true)
    @NotNull(message = "必须提交商品标题")
    private String title;

    @ApiModelProperty(value = "商品价格", required = true)
    @NotNull(message = "必须提交商品价格")
    private Double price;

    @ApiModelProperty(value = "商品原价", required = true)
    @NotNull(message = "必须提交商品原价")
    private Double oldPrice;

    @ApiModelProperty(value = "商品库存", required = true)
    @NotNull(message = "必须提交商品库存")
    private Integer num;

    @ApiModelProperty(value = "商品销量", required = true)
    @NotNull(message = "必须提交商品销量")
    private Integer saleCount;

    @ApiModelProperty(value = "商品类编号", required = true)
    @NotNull(message = "必须提交商品类编号")
    private Integer proCategoryId;

    @ApiModelProperty(value = "商品图片地址", required = true)
    @NotNull(message = "必须提交商品图片地址")
    private String urls;
}
